import request from '@/utils/request';


// 获取列表
export const reqDataList = (params)=>request({url:`/system/tasks/`,method:'get',params});

// 获取信息
export const reqdataInfo =(id)=>request({url:`/system/tasks/${id}/`,method:'get'});
// 添加或者修改
export const reqAddOrUpdate=(data)=>{

	if(data.id){
		return request({url:`/system/tasks/${data.id}/`,method:'patch',data})
	}else{
		return request({url:'/system/tasks/',method:'post',data})
	}
}

// 删除
export const reqRemove = (id)=>request({url:`/system/tasks/${id}/`,method:'delete'});


